package com.xjrsoft.module.workflow.service;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjrsoft.module.workflow.entity.XjrNwfSchemeauth;

import java.util.List;

/**
* @Author:湘北智造-框架开发组
* @Date:2020/10/21
* @Description:流程模板权限Service
*/
public interface IXjrNwfSchemeAuthService extends IService<XjrNwfSchemeauth> {


    /**
    * @Author:湘北智造-框架开发组
    * @Date:2020/10/26
    * @Param:[schemeInfoId]
    * @return:java.util.List<com.xjrsoft.module.workflow.entity.XjrNwfSchemeauth>
    * @Description:根据流程模板信息Id查询流程模板权限
    */
    List<XjrNwfSchemeauth> getBySchemeInfoId(String schemeInfoId);

    /**
    * @Author:湘北智造-框架开发组
    * @Date:2020/10/26
    * @Param:[schemeInfoId]
    * @return:boolean
    * @Description:删除流程模板权限
    */
    boolean delete(String schemeInfoId);

    /**
    * @Author:湘北智造-框架开发组
    * @Date:2020/12/24
    * @Param:[jSONArray]
    * @return:boolean
    * @Description:保存authList
    */
    boolean saveAuthList(String nwfSchemeInfoId, JSONArray jSONArray) throws Exception;

}
